using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework;
using XNALibrary.Game;

namespace XNALibrary.PostProcessing
{
    public class SaturateFilter : BaseFilter
    {
        private float threshold;

        //Constructor
        public SaturateFilter(int texture,float threshold) : base (texture)
        {
            this.threshold = threshold;
        }
        
        //Inicializador
        public override void Register()
        {
            Shader = BaseGame.content.Load<Effect>("Resources\\Effects\\PostProcessing\\Saturate");
            Shader.Parameters["BloomThreshold"].SetValue(threshold);
        }
    }
}
